// Sunghan Cho
// 301140084
// sunghanc@sfu.ca

#include "repeatstudentlistmodel.h"
#include "QDebug"

RepeatStudentListModel::RepeatStudentListModel(QObject *parent) : SelectedStudentListModel(parent)
{
}

RepeatStudentListModel::RepeatStudentListModel(ItemManager *pItemManager, QObject *parent) : SelectedStudentListModel(pItemManager, parent)
{
}

bool RepeatStudentListModel::shouldIncludeInList(Item *pNewItem)
{
    Student* std = dynamic_cast<Student*>(pNewItem);

    if(SelectedStudentListModel::shouldIncludeInList(pNewItem) == true
        && std->getCoursesTakenCount() > 1){
        return true;
    }
    return false;
}
